Simon McVittie [Mon, 15 Feb 2021 10:42:41 +0000 (10:42 +0000)]
Force installation of fontconfig's preferred fonts for tests
The experimental dependency resolver is non-deterministic and can
choose various different fonts, some of which make the reftests fail.
Force its hand by choosing the fonts that fontconfig prioritizes highest,
so that we get deterministic results.
Simon McVittie [Mon, 15 Feb 2021 10:00:03 +0000 (10:00 +0000)]
d/patches: Never mark rendering differences as accepted, only tolerated
Upstream consider absolutely any difference in rendering to be an error,
so we should always record the diff for inspection.
Simon McVittie [Mon, 15 Feb 2021 09:59:15 +0000 (09:59 +0000)]
d/patches: Adjust forwarding URL for refactoring
I'm hoping upstream will accept those patches even though they rejected
the others.
Simon McVittie [Sun, 14 Feb 2021 19:36:06 +0000 (19:36 +0000)]
Release to experimental
Simon McVittie [Sun, 14 Feb 2021 18:43:15 +0000 (18:43 +0000)]
Record some of the patches as specifically rejected by upstream
Simon McVittie [Sat, 13 Feb 2021 23:51:41 +0000 (23:51 +0000)]
Mark patches as forwarded
Simon McVittie [Sat, 13 Feb 2021 23:33:30 +0000 (23:33 +0000)]
d/rules: Tolerate minor differences in some reftests
Simon McVittie [Sat, 13 Feb 2021 16:46:57 +0000 (16:46 +0000)]
d/rules: Dump reftest differences into the log as base64
Some of the reftests are failing reliably on buildds, but passing
reliably on the corresponding porterbox. We should inspect the
differences to check that they're close enough.
Debian package builds don't have an equivalent of $AUTOPKGTEST_ARTIFACTS
(as requested in https://bugs.launchpad.net/launchpad/+bug/
1845159) so
base64-encoding the results and dumping them into the text log is the
best we can do right now.
Simon McVittie [Sat, 13 Feb 2021 16:44:02 +0000 (16:44 +0000)]
d/rules: Show the detailed test log even if tests all succeed
When we start accepting minor differences, we'll want to know how much
the difference actually was.
Simon McVittie [Sat, 13 Feb 2021 11:01:13 +0000 (11:01 +0000)]
Add patches to tolerate reftest differences selectively
This is based on our equivalent patch in gtk+3.0, but with tolerance
of differences (inspired by librsvg's reftests) instead of just ignoring
failures completely.
Failures can still be ignored completely by setting the tolerances to be
very large.
Simon McVittie [Fri, 12 Feb 2021 10:05:50 +0000 (10:05 +0000)]
Release to experimental
Simon McVittie [Wed, 10 Feb 2021 12:44:53 +0000 (12:44 +0000)]
symbols: Ignore removal of gtk_glade_catalog_init
This symbol appeared in the ABI, but not in any header files, and is
considered private.
Simon McVittie [Wed, 10 Feb 2021 12:23:49 +0000 (12:23 +0000)]
Update changelog
Simon McVittie [Wed, 10 Feb 2021 09:39:59 +0000 (09:39 +0000)]
d/rules: Extend test timeout on slower architectures
As of 4.0.1, mipsel was the only release architecture that timed out
on the experimental buildds, but others are likely to be at risk.
Simon McVittie [Wed, 10 Feb 2021 09:37:22 +0000 (09:37 +0000)]
d/rules: Add a note of the test failures that need investigation
Simon McVittie [Wed, 10 Feb 2021 09:23:33 +0000 (09:23 +0000)]
Bump graphene build-dependency to 1.10.4 on i386
Earlier versions used SSE, which has stricter alignment requirements
that cause many of the build-time tests to fail (in addition to not
being available on Debian's baseline CPU).
Simon McVittie [Tue, 9 Feb 2021 19:56:06 +0000 (19:56 +0000)]
New upstream release
Simon McVittie [Tue, 9 Feb 2021 19:56:06 +0000 (19:56 +0000)]
Update upstream source from tag 'upstream/4.0.3'
Update to upstream version '4.0.3'
with Debian dir
ae7696a50338846680b4bcf8f0e1f77e4503b05d
Simon McVittie [Tue, 9 Feb 2021 19:55:30 +0000 (19:55 +0000)]
New upstream version 4.0.3
Matthias Clasen [Sun, 7 Feb 2021 18:56:16 +0000 (13:56 -0500)]
4.0.3
Matthias Clasen [Sun, 7 Feb 2021 20:55:39 +0000 (20:55 +0000)]
Merge branch '4.0-backports' into 'gtk-4.0'
4.0 backports
See merge request GNOME/gtk!3168
Matthias Clasen [Fri, 29 Jan 2021 17:49:20 +0000 (12:49 -0500)]
ci: Use v27 of the fedora image
This one includes mesa-libGLES-devel, needed to make
the gstreamer module build.
Matthias Clasen [Sun, 7 Feb 2021 14:00:09 +0000 (09:00 -0500)]
x11: More dnd fixes
Whenever we communicate targets, we need to the union, otherwise
we don't tell the other side about our serialization. This makes
drops of images from gtk4-icon-browser to gimp and libreoffice
succeed in transferring data.
Fixes: #3654
Matthias Clasen [Sun, 7 Feb 2021 06:32:39 +0000 (01:32 -0500)]
x11: Pass mimetypes when creating output stream
When creating the output stream for a drop, we must
pass the mimetypes we support, otherwise the picking
of the right handler does not work.
Fixes: #3652
Matthias Clasen [Sun, 7 Feb 2021 06:31:40 +0000 (01:31 -0500)]
x11: Fix a memory leak
We ref the content formats here, so we better unref it
when done.
Matthias Clasen [Sun, 7 Feb 2021 06:30:50 +0000 (01:30 -0500)]
x11: Some code cleanups
Fix some glaring misindentation.
David Lechner [Fri, 5 Feb 2021 21:56:14 +0000 (15:56 -0600)]
meson: use correct module file extension on macOS
GModule requires the .so file extension on macOS for historic reasons.
However Meson defaults to .dylib for modules, so we need to override
it to get the correct extension.
Fixes #3645.
Matthias Clasen [Fri, 5 Feb 2021 01:46:51 +0000 (20:46 -0500)]
iconbrowser: Make image dnd work again
We need to drag a texture, not a paintable.
Fixes: #3648
Maximiliano Sandoval R [Thu, 4 Feb 2021 20:02:22 +0000 (21:02 +0100)]
gtkshow: Fix doc typo
Matthias Clasen [Thu, 4 Feb 2021 18:05:28 +0000 (13:05 -0500)]
docs: Rewrite the long description for GtkDialog
As was pointed out in #3646, some of the content here
was a bit outdated.
Fixes: #3646
Matthias Clasen [Thu, 4 Feb 2021 05:40:14 +0000 (00:40 -0500)]
treemodelfilter: Drop unreachable code
We never get here. The compiler says so.
Pointed out in https://www.viva64.com/en/b/0793/
Matthias Clasen [Thu, 4 Feb 2021 05:39:34 +0000 (00:39 -0500)]
css: Drop a bit of unreachable code
We never get here. The compiler says so.
Pointed out in https://www.viva64.com/en/b/0793/
Matthias Clasen [Thu, 4 Feb 2021 05:34:05 +0000 (00:34 -0500)]
a11y: Avoid out-of-bounds access
Don't use the index before we've checked its good.
Pointed out in https://www.viva64.com/en/b/0793/
Matthias Clasen [Thu, 4 Feb 2021 05:29:51 +0000 (00:29 -0500)]
gdk: Remove a redundant check
We already know desktop_notification_id is not NULL.
Pointed out in https://www.viva64.com/en/b/0793/
Matthias Clasen [Thu, 4 Feb 2021 05:25:36 +0000 (00:25 -0500)]
messagedialog: Don't initialize twice
We don't need to set these fields more than once.
Pointed out in https://www.viva64.com/en/b/0793/
Matthias Clasen [Thu, 4 Feb 2021 05:20:26 +0000 (00:20 -0500)]
x11: A case of argument order confusion
translate_keysym was expecting its arguments the
other way around.
Pointed out in https://www.viva64.com/en/b/0793/
Matthias Clasen [Thu, 4 Feb 2021 05:17:55 +0000 (00:17 -0500)]
textbtree: Avoid line vs char count confusion
The post_insert_fixup helper function was confused about
its argument order.
Pointed out in https://www.viva64.com/en/b/0793/
Matthias Clasen [Thu, 4 Feb 2021 05:13:53 +0000 (00:13 -0500)]
listbase: Don't specify the same thing twice
We only need to set EXPLICIT_NOTIFY once.
Pointed out in https://www.viva64.com/en/b/0793/
Matthias Clasen [Thu, 4 Feb 2021 05:11:42 +0000 (00:11 -0500)]
css: Fix border value parsing
This function was not resetting computed as it meant
to because the last loop was never executed.
Pointed out in https://www.viva64.com/en/b/0793/
Matthias Clasen [Thu, 4 Feb 2021 05:09:09 +0000 (00:09 -0500)]
vulkan: Fix image uploading by regions
This code did not make sense; it was incrementing
the wrong variable.
Pointed out in https://www.viva64.com/en/b/0793/
Matthias Clasen [Thu, 4 Feb 2021 01:27:55 +0000 (20:27 -0500)]
docs: Mention css drop-shadow filter
We don't support this filter, currently.
Matthias Clasen [Wed, 3 Feb 2021 16:21:23 +0000 (11:21 -0500)]
css: Fix shadow value equal
This function was not doing the right thing.
Once we are doing the right thing and not compare
shadows as unequal, some reftests that inhibit
snapshots for a few frames now hang forever, since
we are no more redrawing unnecessarily. Fix that
with an explicit queue_draw.
Jakub Steiner [Wed, 3 Feb 2021 22:13:24 +0000 (23:13 +0100)]
Adwaita: allow suggested and destructive action buttons in lists
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3643
Matthias Clasen [Wed, 3 Feb 2021 19:16:01 +0000 (14:16 -0500)]
x11: Handle X-specific targets in drops
This code is very similar to the handling for these
targets in the clipboard case.
Fixes: #3642
Matthias Clasen [Tue, 2 Feb 2021 20:22:32 +0000 (15:22 -0500)]
css: Allow transitioning different-size shadows
The code handles it just fine. The length check was
an erronous addition.
Jonas Ådahl [Mon, 1 Feb 2021 10:31:11 +0000 (11:31 +0100)]
gdk/toplevelsize: Remove warnings about exceeding bounds
Sometimes the size will exceed the minimum bounds. For example crazy
applications like the widget factory that contains the world, or when a
user interactively resizes a window to be larger than the monitor the
window is on is.
The former is questionable, but the latter is not, and from here we
can't really see the difference, so just stop complaining.
Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3035
Matthias Clasen [Fri, 29 Jan 2021 15:45:27 +0000 (10:45 -0500)]
Remove a forgotten file
The example series only has 9 steps now. Remove remnants
of step 10.
Matthias Clasen [Mon, 1 Feb 2021 01:22:59 +0000 (20:22 -0500)]
nativedialog: Add more docs
Emphasize that native dialogs aren't widgets, and are not
kept alive by GTK.
Matthias Clasen [Sat, 30 Jan 2021 03:45:21 +0000 (22:45 -0500)]
tests: Disable the textview-margins reftest
It is too flaky to be useful.
Jan Alexander Steffens (heftig) [Mon, 25 Jan 2021 21:43:11 +0000 (22:43 +0100)]
gtkgstsink: Sync texture before handing it to GDK
We need to synchronize when moving the texture between contexts, or we
get glitches with VA-API decoding.
Emmanuele Bassi [Fri, 29 Jan 2021 16:30:19 +0000 (16:30 +0000)]
build: Disable subproject Cairo tests
There's really no point in running them.
Emmanuele Bassi [Thu, 28 Jan 2021 15:42:22 +0000 (15:42 +0000)]
docs: Annotate XML fragments as such
This way we can get syntax highlighting.
Emmanuele Bassi [Thu, 28 Jan 2021 14:54:10 +0000 (14:54 +0000)]
docs: Escape bare tags
Otherwise tools processing the description of GtkWidget will be *very*
confused.
Emmanuele Bassi [Thu, 28 Jan 2021 14:53:39 +0000 (14:53 +0000)]
docs: Use the appropriate syntax for code block language
Emmanuele Bassi [Thu, 28 Jan 2021 14:53:25 +0000 (14:53 +0000)]
docs: Remove stray code block end marker
Timm Bäder [Thu, 28 Jan 2021 11:31:18 +0000 (12:31 +0100)]
shader builder: Improve error output
Timm Bäder [Sun, 24 Jan 2021 04:27:07 +0000 (05:27 +0100)]
node editor: Make help textview monospace
Otherwise the nice markdown tables don't line up.
Sebastian Keller [Thu, 28 Jan 2021 21:31:03 +0000 (22:31 +0100)]
wayland: Signal gtk-shell surface destruction to the server
This adds a "release" destructor for the gtk_surface1 interface which
signals to the server that a surface has been destroyed on the client
side, which the current "destroy" does not do.
Ideally the protocol would have specified a destroy request marked as
destructor to handle this automatically, however this is no longer
possible due to the destroy method being implicitly generated in the
absence of an explicit request in the protocol. Adding a destroy request
marked as destructor now would generate a new destroy method that
unconditionally would send the request to the server, which would break
clients running on servers not supporting that request.
Matthias Clasen [Thu, 28 Jan 2021 04:36:55 +0000 (23:36 -0500)]
Remove vestigial glade support
These files have not been kept up to date, and
glade doesn't work with GTK4 currently.
Matthias Clasen [Thu, 28 Jan 2021 04:28:36 +0000 (23:28 -0500)]
Drop unused logo resource
The inspector no longer sets a window icon.
Matthias Clasen [Wed, 27 Jan 2021 22:01:51 +0000 (17:01 -0500)]
builder-tool: Translate GtkImage:pixbuf
The pixbuf property doesn't exist anymore. It is
commonly set to a path in ui files, so translate it
to the file property.
Matthias Clasen [Wed, 27 Jan 2021 18:50:05 +0000 (13:50 -0500)]
docs: Add gtk_widget_grab_default to migration guide
Point out the replacement for this api.
Matthias Clasen [Wed, 27 Jan 2021 04:43:11 +0000 (23:43 -0500)]
widget: Fix can-focus
Setting can-focus to FALSE on a widget is supposed
to prevent focus from entering the entire subtree.
So when we grab focus directly to a widget, we need
to check the can-focus flag not just of the widget
itself, but all its ancestors.
Fixes: #3610
Jan Alexander Steffens (heftig) [Mon, 25 Jan 2021 21:38:45 +0000 (22:38 +0100)]
gtkgstsink: Use video_frame_free also for the GL path
The video frame needs to stay mapped while the texture is in use.
Avoid using g_memdup because the structure is not supposed to be moved.
Jan Alexander Steffens (heftig) [Mon, 25 Jan 2021 21:39:32 +0000 (22:39 +0100)]
gtkgstsink: Report allocation size even if no pool requested
We can do that so we should.
Matthias Clasen [Tue, 26 Jan 2021 15:40:22 +0000 (10:40 -0500)]
docs: Update border-size docs
GtkCenterLayout respected border-size as well.
Matthias Clasen [Tue, 26 Jan 2021 03:15:56 +0000 (22:15 -0500)]
searchbar: Fix documentation mishap
The css section was inserted between the example
and the sentence referring to it.
Jan Alexander Steffens (heftig) [Mon, 25 Jan 2021 21:33:46 +0000 (22:33 +0100)]
modules: Simplify _gtk_get_module_path
Remove the bizarre loops.
Matthias Clasen [Fri, 22 Jan 2021 18:56:04 +0000 (13:56 -0500)]
Avoid a buffer overrun
We were putting the '\0' behind the end. Oops.
Matthias Clasen [Fri, 22 Jan 2021 16:50:04 +0000 (11:50 -0500)]
testsuite: Fix a leak
asan pointed out that the array tests leak.
Matthias Clasen [Fri, 22 Jan 2021 16:37:20 +0000 (11:37 -0500)]
Avoid a heap-use-after-free
_gtk_gesture_cancel_sequence frees the struct pointed to by data,
so don't write to it afterwards. Found by asan.
Matthias Clasen [Fri, 22 Jan 2021 03:43:33 +0000 (22:43 -0500)]
wayland: Explicitly announce ssd for kwin
Without this, kwin correctly assumes that we are
using client-side decorations. This is a port
of
32ae97f1 from GTK 3.24.
Fixes: #3609
Emmanuele Bassi [Thu, 21 Jan 2021 16:39:22 +0000 (16:39 +0000)]
a11y: Make GtkATContext realization lazier
We only realize the ATContext on the top level, which will create an
GtkAtSpiRoot object and the corresponding GtkAtSpiCache object. Whenever
an AT connects to the accessibility bus, and asks for the various
objects, all the ATContext will be realized on demand.
Emmanuele Bassi [Thu, 21 Jan 2021 16:31:28 +0000 (16:31 +0000)]
a11y: Avoid signal emission during cache population
If we're responding to a request to get all the cached items, there's no
need to emit signals when adding an ATContext to the cache.
Emmanuele Bassi [Wed, 20 Jan 2021 19:10:54 +0000 (19:10 +0000)]
Abort if the shared memory pool cannot be created
If we cannot allocate memory, we cannot create any windowing system
surface. There's no coming back from that.
Fixes: #3607
Matej Urbančič [Sat, 6 Feb 2021 19:41:30 +0000 (19:41 +0000)]
Update Slovenian translation
Marek Černocký [Sat, 6 Feb 2021 08:45:13 +0000 (09:45 +0100)]
Updated Czech translation
Matthias Clasen [Wed, 3 Feb 2021 15:30:14 +0000 (15:30 +0000)]
Merge branch 'uac.meson.4' into 'gtk-4.0'
gtk4-update-icon-cache: Avoid UAC on 32-bit Windows
See merge request GNOME/gtk!3146
Chun-wei Fan [Wed, 3 Feb 2021 02:16:58 +0000 (02:16 +0000)]
gtk4-update-icon-cache: Avoid UAC on 32-bit Windows
As the program executable name has 'update' in its filename,
gtk4-update-icon-cache.exe is considered to be an installer program on 32-bit
Windows [1], which will cause the program to fail to run unless it is running
with elevated privileges (i.e. UAC).
Avoid this situation by embedding a manifest file into the final executable
that tells Windows that this is not a program that requires elevation.
Fixes issue #3632.
[1]: https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-vista/
cc709628(v=ws.10)?redirectedfrom=MSDN,
under section "Installer Detection Technology"
Hugo Carvalho [Mon, 1 Feb 2021 16:21:40 +0000 (16:21 +0000)]
Update Portuguese translation
Daniel Mustieles [Mon, 1 Feb 2021 10:13:00 +0000 (10:13 +0000)]
Update Spanish translation
Rafael Fontenelle [Sat, 30 Jan 2021 19:15:43 +0000 (19:15 +0000)]
Update Brazilian Portuguese translation
Rafael Fontenelle [Sat, 30 Jan 2021 16:00:24 +0000 (16:00 +0000)]
Update Brazilian Portuguese translation
Simon McVittie [Fri, 29 Jan 2021 18:25:00 +0000 (18:25 +0000)]
d/copyright: Update
Simon McVittie [Fri, 29 Jan 2021 18:19:26 +0000 (18:19 +0000)]
New upstream release
Simon McVittie [Fri, 29 Jan 2021 18:19:26 +0000 (18:19 +0000)]
Update upstream source from tag 'upstream/4.0.2'
Update to upstream version '4.0.2'
with Debian dir
406825fc9afa9878741cf66ebd6fe521a97b2425
Simon McVittie [Fri, 29 Jan 2021 18:18:47 +0000 (18:18 +0000)]
New upstream version 4.0.2
Simon McVittie [Fri, 29 Jan 2021 18:17:36 +0000 (18:17 +0000)]
Update changelog
Anders Jonsson [Thu, 28 Jan 2021 20:39:06 +0000 (20:39 +0000)]
Update Swedish translation
Simon McVittie [Sun, 24 Jan 2021 11:09:52 +0000 (11:09 +0000)]
Increase dependency on librsvg2-common from Suggests to Recommends
This is not a hard dependency, but should be installed in nearly all
cases. Increasingly many icons are provided in SVG format, so
applications will appear broken if the SVG pixbuf loader is not
installed. See #980396 for more information.
adwaita-icon-theme already Recommends librsvg2-common, but people who
routinely do not install recommended packages will get a better hint
about how much will be broken by its removal if GTK also recommends it.
Marek Černocký [Tue, 26 Jan 2021 15:22:10 +0000 (16:22 +0100)]
Updated Czech translation
Fran Dieguez [Mon, 25 Jan 2021 18:53:02 +0000 (18:53 +0000)]
Update Galician translation
Fran Dieguez [Mon, 25 Jan 2021 18:50:42 +0000 (18:50 +0000)]
Update Galician translation
A S Alam [Sun, 24 Jan 2021 22:52:13 +0000 (22:52 +0000)]
Update Punjabi translation
A S Alam [Sun, 24 Jan 2021 22:42:04 +0000 (22:42 +0000)]
Update Punjabi translation
Efstathios Iosifidis [Sun, 24 Jan 2021 10:17:02 +0000 (10:17 +0000)]
Update Greek translation
Kalev Lember [Tue, 19 Jan 2021 09:46:13 +0000 (10:46 +0100)]
dist: Fix css theme disting after HighContrast-dark changes
Commit
f60d245e327a760a188e8b5a40844f5fe092df43 renamed it from
HighContrast-inverse.css to HighContrast-dark.css.
Kalev Lember [Tue, 19 Jan 2021 09:40:09 +0000 (10:40 +0100)]
Split NEWS for pre-4.0 changes
Similar to commit
87e9f0895b72540172884ff152b0957a39f4ee6d that did the
same for older releases, this commit splits out pre-4.0 changes to
separate NEWS.pre-4.0 file.
Simon McVittie [Tue, 19 Jan 2021 10:43:33 +0000 (10:43 +0000)]
d/rules: Show test log if build-time test fails
dh_auto_test would automatically show meson-logs/testlog.txt, but
because we're running with --setup=x11, we get meson-logs/testlog-x11.txt
instead.
Matthias Clasen [Tue, 19 Jan 2021 03:23:57 +0000 (22:23 -0500)]
4.0.2